// 路由中间件
import type { RouteLocationNormalized } from "vue-router";

const my = defineNuxtRouteMiddleware((to: RouteLocationNormalized) => {
    if(to.path === '/about') {
        // return true 返回页面 return false 404
        return navigateTo('/login')
    }
})

export default my